package com.ethank.mapper;

import com.ethank.common.core.domain.AjaxResult;
import com.ethank.entity.log.FnaInvoiceLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author tf
 * @date 2024-03-12
 * @Description
 */
@Mapper
public interface FnaInvoiceLogMapper {
    /**
    * @Description: 新增日志
    * @Param: [fnaInvoiceLog]
    * @return: java.lang.Integer
    * @Author: tf
    * @Date: 2024-03-12
    */
    Integer insertFnaInvoiceLog(FnaInvoiceLog fnaInvoiceLog);

     /**
     * @Description: 查询日志
     * @Param: [filterMap]
     * @return: com.ethank.entity.log.FnaInvoiceLog
     * @Author: tf
     * @Date: 2024-03-12
     */
    FnaInvoiceLog getOneByMap(@Param("filterMap") HashMap<String, Object> filterMap);
    
    /**
    * @Description: 查询日志记录ID
    * @Param: [filterMap]
    * @return: java.lang.Integer
    * @Author: tf
    * @Date: 2024-03-12
    */
    Integer  getIdByMap(@Param("filterMap") HashMap<String, Object> filterMap);

    /**
    * @Description: 更新日志
    * @Param: [fnaInvoiceLog]
    * @return: void
    * @Author: tf
    * @Date: 2024-03-12
    */
    void updateFnaInvoiceLog(FnaInvoiceLog fnaInvoiceLog);

   List<Map<String, Object>> getInvoiceHeaderList(@Param("filterMap") HashMap<String, Object> filterMap);

    String getBaseStr(@Param("mediaId")String mediaId);
}
